home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 October / maximum-cd-2001-10.iso / Utilities / WinHacker / wh95v203.exe / Disk1 / data1.cab / Plugins / Example - Registry.wh < prev    next >
Encoding:
Text File  |  1999-10-31  |  1.6 KB  |  75 lines

  1. // WinHacker Script
  2. // Copyright (c) 1996 Wedge Software
  3. //
  4. // Full Registry Example
  5. //
  6.  
  7. [Main]
  8. Desc = Full Registry Example
  9. // Ask = Are you sure you want to run the Registry Example?
  10. // StartMessage = Starting Registry Example.
  11. // ExitMessage = Done.
  12.  
  13. [Registry]
  14. Procs = 5
  15.  
  16. [RegistryProc#1]
  17. // Ask = Run RegistryProc#1? (dword example)
  18. RootKey = HKEY_CURRENT_USER
  19. Path = Software\Wedge Software\Junk
  20. Item = A DWORD
  21. Action = WriteDword
  22. Value = (DialogAskDword#1)
  23.  
  24. [DialogAskDword#1]
  25. Info = Enter a number (3 is the default)
  26. Default = 3
  27. Min = 1
  28. Max = 5
  29.  
  30.  
  31. [RegistryProc#2]
  32. // Ask = Run RegistryProc#2? (dword example)
  33. RootKey = HKEY_CURRENT_USER
  34. Path = Software\Wedge Software\Junk
  35. Item = 
  36. Action = WriteString
  37. Value = (DialogAskString#1)
  38.  
  39. [DialogAskString#1]
  40. Info = Enter a string (default is "hello")
  41. Default = hello
  42.  
  43. [RegistryProc#3]
  44. // Ask = Run RegistryProc#3? (hex example)
  45. RootKey = HKEY_CURRENT_USER
  46. Path = Software\Wedge Software\Junk
  47. Item = Hex
  48. Action = WriteHex
  49. Value = (DialogAskHex#1)
  50.  
  51. [DialogAskHex#1)
  52. Info = Enter a Hex number below
  53. Default = 77 68 39 35
  54.  
  55. // Value = 77 68 39 35
  56. // (it says "wh95")
  57.  
  58. // Create a value called "test" so we can delete it later
  59. [RegistryProc#4]
  60. Ask = Create value "test" so we can delete it later?
  61. RootKey = HKEY_CURRENT_USER
  62. Path = Software\Wedge Software\Junk
  63. Item = test
  64. Action = WriteString
  65. Value = this is a test string!
  66.  
  67. // Delete "test"
  68. [RegistryProc#5]
  69. Ask = Delete value "test"?
  70. RootKey = HKEY_CURRENT_USER
  71. Path = Software\Wedge Software\Junk
  72. Item = test
  73. Action = DeleteValue
  74.  
  75.